// <sentence>设置语言环境</sentence> 
$aLanguage = JCAT_Language::GetLanguage('<print>$TheDoc->Get('Language')</print>') ;												// <sentence>指定当前语言</sentence> 
$aLanguage->SetCurrentPackage('<print>$TheDoc->Get('LanguagePackage')</print>') ;													// <sentence>创建当前语言包</sentence>

<if "$TheDoc.IfUseDB()">
// <sentence>数据库 首选参数</sentence> 
JCAT_Package::ImportClass('JCAT_DB',JCAT::PACKAGE_DB) ;										// <sentence>载入 DB 包外观类</sentence> 
JCAT_DB::$sPreferredFactory			= '<print>$TheDoc->Get('DBDriver')</print>' ;								// <sentence>首选 数据库 工厂类</sentence> 
JCAT_DB::$sPreferredDBServer		= '<print>$TheDoc->Get('DBServer')</print>' ;											// <sentence>首选 数据库 服务器</sentence> 
JCAT_DB::$sPreferredDBName			= '<print>$TheDoc->Get('DBName')</print>' ;													// <sentence>首选 数据库 库名</sentence> 
JCAT_DB::$sPreferredDBUser			= '<print>$TheDoc->Get('DBUser')</print>' ;													// <sentence>首选 数据库 用户名</sentence> 
JCAT_DB::$sPreferredDBPassword		= '<print>$TheDoc->Get('DBPassword')</print>' ;													// <sentence>首选 数据库 用户密码</sentence>
</if> 